package com.coincalf.wallet.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 平台归账手续费等账户
 * </p>
 *
 * @author crow
 * @since 2018-05-16
 */
@Data
@Accessors(chain = true)
@TableName("admin_address")
public class AdminAddress extends Model<AdminAddress> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 币种Id
     */
    @TableField("coin_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long coinId;

    /**
     * eth keystore
     */
    private String keystore;

    /**
     * eth账号密码
     */
    private String pwd;

    /**
     * 地址
     */
    private String address;

    /**
     * 1:归账,2:打款,3:手续费
     */
    private Integer status;

    /**
     * keystore的存储位置
     */
    private String position;

    /**
     * 类型
     */
    private String type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
